<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<title>Document</title>
		<style>
			/*
				伪类选择器
				它们几个的顺序不能乱
				爱(love)恨(hate)原则 
			*/
			/*
				定义了超链接属性并且没有被访问过的状态
			*/
			a:link {
				color: red;
			}
			
			/*
				访问过的状态
			*/
			a:visited {
				color: orange;
			}
			
			/*
				鼠标悬浮在元素上方时的效果
			*/
			a:hover {
				color: yellow;
			}
			
			/*
				鼠标点下不松的效果(激活状态下的效果)
			*/
			a:active {
				color: purple;
			}

			div {
				width: 200px;
				height: 200px;
				background: black;
				/*
					过渡效果
				*/
				transition: width 2s linear,
							height 2s linear 2s,
							border-radius 2s linear 4s;
			}

			div:hover {
				background: pink;
				/*
					切圆角
				*/
				width: 600px;
				height: 600px;
				border-radius: 50%;
			}

			div:hover+p {
				color: red;
			}

			.box:hover>p {
				background-color: yellow;
			}

			table:hover {
				border: 5px solid gold;
			}

			tr:hover {
				/*border: 2px solid red;*/
				background-color: red;
			}

			td:hover {
				background-color: blue;
				color: white;
			}

		</style>
	</head>
	<body>

		<a href="http://www.taobao.com">淘宝网</a>
		<div></div>
		<p>元宵节快乐!</p>

		<div class="box">
			<p>大家晚上别忘了吃元宵.</p>
		</div>

		<table border="2" align="center" cellpadding="10px" cellspacing="0">
			<tr>
				<td>单元格1</td>
				<td>单元格2</td>
				<td>单元格3</td>
				<td>单元格4</td>
				<td>单元格5</td>
				<td>单元格6</td>
			</tr>
			<tr>
				<td>单元格1</td>
				<td>单元格2</td>
				<td>单元格3</td>
				<td>单元格4</td>
				<td>单元格5</td>
				<td>单元格6</td>
			</tr>
			<tr>
				<td>单元格1</td>
				<td>单元格2</td>
				<td>单元格3</td>
				<td>单元格4</td>
				<td>单元格5</td>
				<td>单元格6</td>
			</tr>
			<tr>
				<td>单元格1</td>
				<td>单元格2</td>
				<td>单元格3</td>
				<td>单元格4</td>
				<td>单元格5</td>
				<td>单元格6</td>
			</tr>
			<tr>
				<td>单元格1</td>
				<td>单元格2</td>
				<td>单元格3</td>
				<td>单元格4</td>
				<td>单元格5</td>
				<td>单元格6</td>
			</tr>
			<tr>
				<td>单元格1</td>
				<td>单元格2</td>
				<td>单元格3</td>
				<td>单元格4</td>
				<td>单元格5</td>
				<td>单元格6</td>
			</tr>
		</table>
		


		
	</body>
</html>